#ifndef _XMLERROR_H_
#define _XMLERROR_H_

#include <QString>

#include <string>
#include <exception>

using std::exception;
using std::string;

namespace Avd {

class XmlError : public exception {
public:
	XmlError(string error, QString xml = 0) : error(error), xml(xml) { }
  virtual const char* what() const throw() {
    return error.c_str();
  }
	QString getXml() const { return xml; }
  ~XmlError() throw() { }
private:
  string error;
	QString xml;

};

}
#endif

